package com.hrt.web.orderInfor.service;

import java.sql.Timestamp;
import java.util.List;

import com.hrt.bean.OrderInfor;
import com.hrt.vo.OrderDetailVO;
import com.hrt.vo.OrderInforVO;

public interface WebOrderService {
	public Long totalCount();

	public void  deleteById( Long[] ids) throws Exception;

	public void saveOrder(OrderInfor orderInfor)throws Exception;

	public	List queryByPage(int pageIndex, int pageSize);
	public	List queryByPage(String hql,int pageIndex, int pageSize);

	public void updateOrder(OrderInfor orderInfor);
	/**
	 * 获取数据库当前时间
	 * @return
	 */
	public Timestamp getDate();

	public OrderInfor getOrderByid(Long orderId);
	/**
	 * 根据memberId获取订单
	 * @return
	 */
	public Long getOrderInforByMemberId(Long memberId,Integer status);
	
	/**
	 *将OrderInforVO转换为OrderInfor
	 * @param vo
	 * @return
	 */
	public OrderInfor saveOrderInfor(OrderInforVO vo, List<OrderDetailVO> ods);
}
